<%@page import="dier.xuanke"%>
<%@page import="dier.Lesson"%>
<%@page import="dier.STudent"%>
<%@page import="dier.TEacher"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"

    pageEncoding="UTF-8"%>
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>

         <title>顾客查询信息页</title>

</head>
<title>顾客查询信息页</title>
<style type="text/css">
   div {
    margin: 0 660px;
   }
   p {
    display: inline;
   }
   
   h2 {
    text-align: center;
    color: blue;
   }
   .xx{
    height: 1000px;
    width: 500;
    
   }
   
   .ys {
   Font-size:35px;
    color: red;
   }
 </style>
 <body>
 <div class="xx">
 <h1>重置密码页面</h1>
 <%
 String shenfen=null;
 String id=null;
 try
 {id=request.getParameter("tid");}
 catch(Exception e){}
 try
 {shenfen=request.getParameter("shenfen");}
 catch(Exception e){}
 int flag=0;
 if(shenfen.equals("学生"))
 {
	 flag=0;
 }
 else
 {
	 flag=1;
 }
 xuanke xk=new xuanke();
 xk.chongzhimm(id, flag);
 %>
 <script type="text/javascript" >
 alert("重置成功！");         //弹出提示框输出错误信息
 window.location='Root.jsp' ;     //跳转到管理员界面
 </script>
 </div>
 </body>
</html>